INSERT INTO `phpcms_module` (`module`, `name`, `path`, `url`, `iscore`, `version`, `author`, `site`, `email`, `description`, `license`, `faq`, `tagtypes`, `setting`, `listorder`, `disabled`, `publishdate`, `installdate`, `updatedate`) VALUES('yp', '企业黄页', 'yp/', '', 0, '1.0.0', 'phpip', 'http://www.phpcms.cn', 'phpip@live.cn', '企业主页、产品发布、企业新闻、商机、人才等', '<br />', '<br />', '', 'array (\n  ''seo_title'' => '''',\n  ''seo_keywords'' => '''',\n  ''seo_description'' => '''',\n  ''groupimg'' => \n  array (\n    1 => '''',\n    4 => ''yp/images/gold.gif'',\n    5 => ''yp/images/gold.gif'',\n    6 => ''yp/images/g_1.gif'',\n  ),\n  ''enableSecondDomain'' => ''0'',\n  ''secondDomain'' => ''c.cc'',\n  ''domainlestleth'' => ''3'',\n  ''savedDomain'' => '''',\n  ''businessdir'' => ''business'',\n  ''cache_index'' => ''10'',\n  ''cache_list'' => ''10'',\n  ''cache_show'' => ''10'',\n  ''ischeck'' => ''0'',\n  ''check_cert'' => ''1'',\n  ''enable_rewrite'' => ''0'',\n  ''priv_roleid'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_news'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_product'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_buy'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_job'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_stat'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_cert'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''allow_add_map'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n  ''add_check'' => \n  array (\n    0 => ''1'',\n    1 => ''6'',\n  ),\n)', 0, 0, '2009-03-02', '2009-03-02', '2009-03-02');
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '计算机/互联网类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '通讯/电子/电力类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '市场/销售/业务类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '企业经营/管理类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '财务类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '行政/人事类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '文职类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '广告/装潢/工业设计类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '房地产/建筑类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '翻译类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '制药类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '运输/物流类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '电力/能源/电气类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '化工类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '机械/设备类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '工业/工厂类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '技工类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '商业/旅游/服务业类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '金融/经济类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '文化/教育/新闻/出版类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '轻工类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '医疗/护理/保健类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '律师/法务类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '地矿冶金/测绘技术类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '科学研究类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '航空航天/核工业类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '农林牧渔类', '', '', '', '', '', '', 0);
INSERT INTO `phpcms_type` (`module`, `name`, `style`, `typedir`, `description`, `thumb`, `url`, `template`, `listorder`) VALUES('yp', '其它类别', '', '', '', '', '', '', 0);

DROP TABLE IF EXISTS `phpcms_member_company`;
CREATE TABLE `phpcms_member_company` (
  `userid` int(10) unsigned NOT NULL,
  `sitedomain` varchar(30) NOT NULL,
  `tplname` varchar(30) NOT NULL,
  `products` mediumtext NOT NULL,
  `companyname` varchar(150) NOT NULL DEFAULT '',
  `catids` varchar(200) NOT NULL DEFAULT '',
  `genre` varchar(30) NOT NULL DEFAULT '未经工商注册，个人',
  `areaname` char(15) NOT NULL DEFAULT '',
  `establishtime` date NOT NULL COMMENT '公司成立日期',
  `linkman` varchar(20) NOT NULL,
  `telephone` varchar(18) NOT NULL,
  `email` varchar(40) NOT NULL,
  `address` varchar(150) NOT NULL DEFAULT '',
  `grade` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '会员等级',
  `endtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '服务期截止时间',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '公司审核状态：0-未审核 1-审核通过',
  `diy` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '自定义风格：1为自定义，0 系统样式',
  `map` varchar(50) NOT NULL COMMENT '地理位置参数',
  `menu` text NOT NULL COMMENT '企业主页使用的菜单',
  `introduce` text NOT NULL COMMENT '公司介绍',
  `logo` varchar(100) NOT NULL COMMENT '企业LOGO',
  `banner` varchar(100) NOT NULL COMMENT '公司Banner',
  `pattern` varchar(30) NOT NULL,
  `employnum` varchar(12) NOT NULL COMMENT '员工人数',
  `turnover` varchar(20) NOT NULL COMMENT '年营业额',
  `elite` tinyint(1) NOT NULL DEFAULT '0',
  UNIQUE KEY `userid` (`userid`),
  KEY `sitedomain` (`sitedomain`,`status`),
  KEY `elite` (`elite`,`status`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_apply`;
CREATE TABLE `phpcms_yp_apply` (
  `applyid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `truename` varchar(20) NOT NULL COMMENT '真实姓名',
  `gender` tinyint(1) NOT NULL DEFAULT '0' COMMENT '性别：0 男 1 女',
  `birthday` date NOT NULL DEFAULT '0000-00-00' COMMENT '生日',
  `idcard` varchar(18) NOT NULL COMMENT '身份证号码',
  `province` varchar(10) NOT NULL COMMENT '户籍所在省份',
  `city` varchar(10) NOT NULL COMMENT '户籍所在城市',
  `placeprovince` varchar(10) NOT NULL COMMENT '目前居住地省份',
  `placecity` varchar(10) NOT NULL COMMENT '目前居中地城市',
  `edulevel` varchar(4) NOT NULL COMMENT '教育水平',
  `userface` varchar(100) NOT NULL COMMENT '照片地址',
  `station` smallint(5) NOT NULL DEFAULT '0' COMMENT '欲从事岗位',
  `experience` varchar(20) NOT NULL COMMENT '工作年限',
  `worktype` varchar(10) NOT NULL,
  `pay` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '薪资要求',
  `introduce` mediumtext NOT NULL COMMENT '个人鉴定',
  `story` mediumtext NOT NULL COMMENT '工作经历',
  `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态:3 通过，2 禁止使用',
  `elite` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '推荐：1推荐，0普通',
  `linkurl` varchar(255) NOT NULL,
  `userid` mediumint(8) NOT NULL DEFAULT '0' COMMENT '用户ID',
  `hits` int(10) unsigned NOT NULL DEFAULT '0',
  `listorder` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `addtime` int(10) unsigned NOT NULL DEFAULT '0',
  `edittime` int(10) unsigned NOT NULL DEFAULT '0',
  `graduatetime` varchar(50) NOT NULL COMMENT '毕业时间',
  `school` varchar(50) NOT NULL COMMENT '毕业学校',
  `specialty` varchar(40) NOT NULL COMMENT '所学专业',
  `area` varchar(50) NOT NULL COMMENT '期待地区',
  `period` smallint(3) unsigned NOT NULL DEFAULT '7' COMMENT '上岗时间',
  `mobile` varchar(18) NOT NULL COMMENT '联系电话',
  `telephone` varchar(18) NOT NULL COMMENT '家庭电话',
  `email` varchar(30) NOT NULL COMMENT 'E-Mail',
  `qq` varchar(10) NOT NULL COMMENT 'QQ',
  `address` varchar(50) NOT NULL COMMENT '通讯地址',
  `zip` varchar(6) NOT NULL COMMENT '邮编',
  `homepage` varchar(50) NOT NULL COMMENT '个人主页',
  PRIMARY KEY (`applyid`),
  KEY `edittime` (`edittime`,`experience`,`edulevel`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_buy`;
CREATE TABLE `phpcms_yp_buy` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(80) NOT NULL DEFAULT '',
  `standard` varchar(50) NOT NULL DEFAULT '',
  `listorder` int(10) unsigned NOT NULL DEFAULT '0',
  `style` varchar(5) NOT NULL,
  `keywords` varchar(45) NOT NULL DEFAULT '',
  `thumb` varchar(100) NOT NULL DEFAULT '',
  `content` mediumtext NOT NULL,
  `userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `price` float unsigned NOT NULL DEFAULT '0',
  `catid` smallint(6) NOT NULL DEFAULT '0',
  `inputtime` int(10) unsigned NOT NULL DEFAULT '0',
  `updatetime` int(10) unsigned NOT NULL DEFAULT '0',
  `tid` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `period` tinyint(3) unsigned NOT NULL DEFAULT '180',
  `quantifier` varchar(9) NOT NULL,
  `elite` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `catid` (`catid`,`status`,`listorder`),
  KEY `userid` (`userid`,`status`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_cert`;
CREATE TABLE `phpcms_yp_cert` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `userid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '所属用户ID',
  `name` varchar(60) NOT NULL COMMENT '证书名称',
  `organization` varchar(60) NOT NULL COMMENT '发证机构',
  `thumb` varchar(100) NOT NULL COMMENT '证书图片',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '证书状态：0 待审核，1 通过，2 不符合要求',
  `addtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
  `effecttime` varchar(20) NOT NULL COMMENT '生效日期',
  `endtime` varchar(20) NOT NULL COMMENT '截至日期',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`,`status`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_collect`;
CREATE TABLE `phpcms_yp_collect` (
  `cid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `userid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '被收藏商家ID',
  `vid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '收藏者ID',
  `title` varchar(100) NOT NULL COMMENT '收藏标题',
  `url` varchar(100) NOT NULL COMMENT '链接地址',
  `addtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '收藏时间',
  PRIMARY KEY (`cid`),
  KEY `userid` (`userid`,`vid`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_count`;
CREATE TABLE `phpcms_yp_count` (
  `id` mediumint(8) unsigned NOT NULL,
  `model` char(7) NOT NULL COMMENT '模型表名：长度为7',
  `hits` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `hits_day` smallint(5) unsigned NOT NULL DEFAULT '0',
  `hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `hits_time` int(10) unsigned NOT NULL DEFAULT '0',
  KEY `id` (`id`,`model`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_guestbook`;
CREATE TABLE `phpcms_yp_guestbook` (
  `gid` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '内容ID，与lable共用',
  `vid` mediumint(8) NOT NULL DEFAULT '0' COMMENT '留言会员ID，非会员则为0',
  `username` varchar(20) NOT NULL COMMENT '提交人姓名，可为匿名和会员名',
  `fax` varchar(18) NOT NULL,
  `telephone` varchar(18) NOT NULL,
  `qq` int(10) unsigned NOT NULL DEFAULT '0',
  `unit` varchar(100) NOT NULL COMMENT '所在单位',
  `msn` varchar(50) NOT NULL,
  `email` varchar(50) NOT NULL,
  `style` varchar(5) NOT NULL COMMENT '标记样式',
  `forwardpage` varchar(100) NOT NULL COMMENT '询价页面URL',
  `content` text NOT NULL,
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未查看，1 已查看',
  `label` varchar(20) NOT NULL COMMENT '所属模型',
  `addtime` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`gid`),
  KEY `id` (`id`,`label`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_job`;
CREATE TABLE `phpcms_yp_job` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `listorder` int(10) unsigned NOT NULL DEFAULT '0',
  `style` varchar(5) NOT NULL,
  `content` text NOT NULL,
  `userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `inputtime` int(10) unsigned NOT NULL DEFAULT '0',
  `updatetime` int(10) unsigned NOT NULL DEFAULT '0',
  `station` smallint(6) NOT NULL DEFAULT '0',
  `title` varchar(120) NOT NULL DEFAULT '',
  `employ` smallint(5) unsigned NOT NULL DEFAULT '0',
  `experience` varchar(20) NOT NULL DEFAULT '1年',
  `worktype` varchar(9) NOT NULL DEFAULT '全职',
  `sex` varchar(6) NOT NULL DEFAULT '不限',
  `degree` varchar(9) NOT NULL DEFAULT '大专',
  `pay` int(10) unsigned NOT NULL DEFAULT '0',
  `period` tinyint(3) NOT NULL DEFAULT '7',
  `elite` tinyint(1) NOT NULL DEFAULT '0',
  `workplace` varchar(15) NOT NULL DEFAULT '',
  `status` tinyint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `station` (`station`,`status`,`period`,`updatetime`),
  KEY `userid` (`userid`,`status`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_news`;
CREATE TABLE `phpcms_yp_news` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(8) unsigned NOT NULL DEFAULT '0',
  `title` varchar(255) NOT NULL DEFAULT '',
  `keywords` varchar(45) NOT NULL DEFAULT '',
  `content` text NOT NULL,
  `style` varchar(5) NOT NULL DEFAULT '',
  `thumb` varchar(100) NOT NULL DEFAULT '',
  `listorder` int(10) unsigned NOT NULL DEFAULT '0',
  `inputtime` int(10) unsigned NOT NULL DEFAULT '0',
  `updatetime` int(10) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `elite` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`,`status`),
  KEY `elite` (`elite`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_product`;
CREATE TABLE `phpcms_yp_product` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(80) NOT NULL DEFAULT '',
  `standard` varchar(75) NOT NULL DEFAULT '',
  `listorder` int(10) unsigned NOT NULL DEFAULT '0',
  `style` varchar(5) NOT NULL DEFAULT '',
  `keywords` varchar(45) NOT NULL DEFAULT '',
  `thumb` varchar(100) NOT NULL DEFAULT '',
  `content` text NOT NULL,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `price` float unsigned NOT NULL DEFAULT '0',
  `catid` smallint(6) unsigned NOT NULL,
  `inputtime` int(10) unsigned NOT NULL DEFAULT '0',
  `updatetime` int(10) unsigned NOT NULL DEFAULT '0',
  `searchid` int(10) unsigned NOT NULL,
  `status` int(10) unsigned NOT NULL DEFAULT '0',
  `elite` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `quantifier` varchar(9) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `catid` (`catid`,`status`,`elite`),
  KEY `userid` (`userid`,`status`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_relation`;
CREATE TABLE `phpcms_yp_relation` (
  `userid` int(11) NOT NULL,
  `catid` int(11) NOT NULL,
  KEY `userid` (`userid`),
  KEY `catid` (`catid`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_stats`;
CREATE TABLE `phpcms_yp_stats` (
  `sid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '统计主键',
  `userid` mediumint(8) unsigned NOT NULL COMMENT '被访问商家ID',
  `vid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '访问者ID',
  `addtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '初访时间',
  `updatetime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后访问时间',
  `hits` mediumint(8) unsigned NOT NULL DEFAULT '1' COMMENT '访问者总访问数',
  `ip` char(15) NOT NULL COMMENT '访问IP',
  PRIMARY KEY (`sid`),
  KEY `userid` (`userid`,`vid`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `phpcms_yp_stock`;
CREATE TABLE `phpcms_yp_stock` (
  `stockid` int(10) NOT NULL AUTO_INCREMENT,
  `jobid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `applyid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `label` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未查看1已查看2邀请面试',
  `addtime` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`stockid`),
  KEY `applyid` (`applyid`,`label`),
  KEY `jobid` (`jobid`,`label`)
) TYPE=MyISAM;